package com.example.hospital.api.controller.form;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @author luojing
 * @date 2024/4/30 10:34
 */
@Data
public class InsertMessageForm {
    @NotBlank(message = "operator不能为空")
    @Pattern(regexp = "^[a-zA-Z0-9\\u4e00-\\u9fa5]{2,10}$",message = "operator内容不正确")
    private String operator;

    @NotNull(message = "message不能为空")
    private String message;
}
